package com.zhiche.lisa.lspm.dao.model.fleet;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 车队与资源绑定关系日志
 * </p>
 *
 * @author qichao
 * @since 2018-07-18
 */
@TableName("lisa_fleet_bind_log")
public class FleetBindLog extends Model<FleetBindLog> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 车队ID
     */
	@TableField("fleet_id")
	private Long fleetId;
    /**
     * 运力资源ID
     */
	@TableField("resource_id")
	private Long resourceId;
	 /**
	  *  运力资源类型，01-牵引车，02-挂车，03-司机
     */
	@TableField("resource_type")
	private String resourceType;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
	/**
     * 	创建人
     */
	@TableField("creator")
	private String creator;

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getFleetId() {
		return fleetId;
	}

	public void setFleetId(Long fleetId) {
		this.fleetId = fleetId;
	}

	public Long getResourceId() {
		return resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "FleetBindLog{" +
			", id=" + id +
			", fleetId=" + fleetId +
			", resourceId=" + resourceId +
			", gmtCreate=" + gmtCreate +
			"}";
	}
}
